import React from 'react';

export default class BodyIndex extends React.Component {
    render() {

        var userName = 'Parry';
        var boolInput = false;
        var html = "这里是html&nbsp;噢！";

        return (
            <div>
                <h3>这里是内容区.</h3>
                <p>{userName == '' ? '用户还没有登录' : '用户名:' + userName}</p>
                <p><input type='button' value="按钮" disabled={boolInput} /></p>
                {/*注释*/}
                <p>{html}</p>
                <p dangerouslySetInnerHTML={{__html:html}}></p>
            </div>
        )
    }
}